@import './element';
@import './transition';
@import './public';
@import './dark';

html {
  height: 100%;
  font-size: 100px;
  box-sizing: border-box;

  // 禁止ios长按时触发系统的菜单
  -webkit-touch-callout: none;
}

body {
  // 滚动条样式
  @extend %scrollbar;

  height: 100%;
  font-family: 'Microsoft YaHei', Helvetica, 'PingFang SC', 'Hiragino Sans GB', SimSun, sans-serif;
  font-size: 16%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

#app {
  position: relative;
  height: 100%;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: inherit;

  // 去除被点击时产生的边框
  -webkit-tap-highlight-color: transparent;
}

a,
a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
  outline: none;
}

div:focus {
  outline: none;
}

ul {
  text-decoration: none;
}

.dark {
  color-scheme: dark;
}

::view-transition-new(root),
::view-transition-old(root) {
  /* 关闭默认动画，否则影响自定义动画的执行 */
  animation: none;
}

.dark::view-transition-old(root) {
  z-index: 100;
}
